import request from '@/utils/request'

export function getUserList(params) {
  return request({
    url: '/polestar/getUserList',
    method: 'get',
    params
  })
}

export function creatUser(params) {
  return request({
    url: '/polestar/createUser',
    method: 'post',
    data: params
  })
}

export function updateUser(params) {
  return request({
    url: '/polestar/updateUser',
    method: 'post',
    data: params
  })
}

export function delUser(username) {
  return request({
    url: '/polestar/deleteUser',
    method: 'post',
    data: {
      username
    }
  })
}
